<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>学生展示页面</title>
</head>
<body>
<form>
	<table align="center" width="600">
		<tr>
			<th width="100">学生编号</th>
			<th width="100">学生姓名</th>
			<th width="100">学生性别</th>
			<th width="200">学生照片</th>
			<th width="100">学生详情</th>
		</tr>
		{% for student in list.items %}
			<tr>
				<th>{{ student.num }}</th>
				<th>{{ student.name }}</th>
				<th>{{ student.gender | genderes }}</th>
				<th><img src="{{ student.pic }}" width="20%"></th>
				<th><a href="/info?id={{ student.id }}">{{ student.name }} 详情</a></th>
			</tr>
		{% endfor %}
		<tr align="center">
			<th colspan="5">
				{% if list.prev_num %}
					<a href="/studentlist?pag_num={{ list.prev_num }}">上一页</a>
				{% endif %}
				{% for page in list.iter_pages() %}
					<a href="/studentlist?pag_num={{ page }}">{{ page }}</a>
				{% endfor %}
				{% if list.has_next %}
					<a href="/studentlist?pag_num={{ list.next_num }}">下一页</a>
				{% endif %}
			</th>
		</tr>

	</table>

</form>
</body>
</html>